package pool;

import java.util.concurrent.*;

public class ExecutorsTest1 {
	public static void main(String[] args) {
		ExecutorService se = Executors.newFixedThreadPool(10);
		ExecutorService executor = new ThreadPoolExecutor(10, 20, 0l, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(10));
		executor.execute(new Thread(() -> {
			System.out.println(Thread.currentThread().getName() + "我是线程");
		}));

	}


}
